<?php
/**
 * Created by PhpStorm.
 * User => 王松
 * Time => 2017/6/18 16:13
 */

namespace App\Project\Filters;

class PersonalHistoryFilter extends FilterAbstract
{
    protected function forExtend()
    {
        return [
            "smoke.time"        => 1,
            "smoke.many"        => 1,
            "stop_smoke"        => 1,
            "drink.time"        => 1,
            "drink.frequency"   => 1,
            "drink.whiteSpirit" => 1,
            "drink.redSpirit"   => 1,
            "drink.beer"        => 1,
            "stop_drink"        => 1,
            "drink.whiteSpiritType"=>1,
            "drink.redSpiritType"=>1,
            "drink.beerSpiritType"=>1,
        ];
    }

    protected function getRootFieldsHasNoSon()
    {
        return ['id', 'record_id', 'smoke', 'stop_smoke', 'drink', 'stop_drink', 'remark'];
    }

    protected function getRootFieldsHasSon()
    {
        return [];
    }

    protected function getSonFieldsForEachRoot()
    {
        return [];
    }
}